<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<c:set var="contextPath" value="${pageContext.request.contextPath}"/>
<div class="pageContent">
<form method="post" action="${contextPath }/management/materials/inquirymaterials/update" class="required-validate pageForm" onsubmit="return validateCallback(this, dialogReloadNavTab);">
	<input type="hidden" name="id" value="${inquiryMaterials.id}"/>
	<div class="pageFormContent" layoutH="58">
	<p>
		<label>联系方式：</label>
		<input type="text" name="contact" size="32" maxlength="255" value="${inquiryMaterials.contact}" class="required validate[required]"/>
	</p>
	<p>
		<label>产品规格：</label>
		<input type="text" name="format" size="32" maxlength="255" value="${inquiryMaterials.format}" class="required validate[required]"/>
	</p>
	<p>
		<label>品名：</label>
		<input type="text" name="name" size="32" maxlength="32" value="${inquiryMaterials.name}" class="required validate[required]"/>
	</p>
	<p>
		<label>采购单价：</label>
		<input type="text" name="price" size="32" maxlength="11" value="${inquiryMaterials.price}" class="required validate[required]"/>
	</p>
	<p>
		<label>是否送样：</label>
		<input type="text" name="sample" size="32" maxlength="10" value="${inquiryMaterials.sample}" />
	</p>
	<p>
		<label>供应商：</label>
		<input type="text" name="supplier" size="32" maxlength="255" value="${inquiryMaterials.supplier}" class="required validate[required]"/>
	</p>
	<p>
		<label>日期：</label>
		<input type="text" name="time" class="date validate[required]" readonly="readonly" style="float:left;" value="<fmt:formatDate value="${inquiryMaterials.time}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
		<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
	</p>
	<p>
		<label>型号：</label>
		<input type="text" name="type" size="32" maxlength="255" value="${inquiryMaterials.type}" class="required validate[required]"/>
	</p>
	<p>
		<label>备注：</label>
		<input type="text" name="description" size="32" maxlength="255" value="${inquiryMaterials.description}" />
	</p>
	</div>
	
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>